home *** CD-ROM | disk | FTP | other *** search
- // Scene File: ANIMLITE.PI
- // by Rob McGregor
- //
- // A moving light creates changing shadow effects
-
- include "..\..\..\colors.inc"
- include "..\..\..\texture.inc"
- include "..\..\..\stones.inc"
-
- // Define the range of the animation
- start_frame 0
- end_frame 49
- outfile "light"
-
- // Set up the camera
- viewpoint {
- from <0, 1.5, -4>
- at <0, 0.5, 0>
- up <0, 1, 0>
- angle 45
- resolution 320, 200
- aspect 1.6
- }
-
- background sky_blue
- haze 0.9, 25, sky_blue
-
- // Define some tokens and a movement expression
- define startX 20
- define increment (frame - start_frame) / (end_frame - start_frame)
- define PosX (1 - increment) * startX + increment * -startX
-
- // Move the light
- light <PosX, 10, 5>
-
- // Create some objects to cast shadows
- object { sphere <1, 0.5, 0>, 0.5 reflective_blue }
-
- object {
- cone <0, -1, 0>, 0.5, <0, 0, 0>, 0
- translate <-1, 1, 0>
- Stone10
- }
-
- object {
- box <-1, -1, -1>, <1, 1, 1>
- scale <0.25, 0.25, 0.25>
- rotate <0, 45.0, 0>
- translate <0, 0.25, 0.5>
- reflective_gold
- }
-
- // Something to cast the shadows on
- object {
- disc <0, 0, 0>, <0, 1, 0>, 10000
- Stone16 { scale <0.25, 1, 0.25> }
- }
-